<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function min(a, b, c) {
        let x = a;
        if (x > b) {
          x = b;
        }
        if (x > c) {
          x = c;
        }
        return x;
      }
      console.log(min(1, -2, 3));
    </script>
  </body>
</html>
